package ex;

import java.io.File;
import java.util.*;

/**
 * @author small瑞
 */
public class Ine {
    public static void main(String[] args) {
        File file = new File("E:\\data.txt");
        if(file.exists()){
            System.out.println(file.length());
        }
        System.out.println(file.getName());

    }
    static List<Integer> getList(){
        List<Integer>cur = new ArrayList<>();
        Random random = new Random();
        for(int i = 0 ; i < 20 ; i++){
            cur.add(random.nextInt(100));
        }
        return cur;
    }
   static Integer[] getArr(){
        return getList().toArray(Integer[]::new);
    }
}
